import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import Frame from './frame'
import VueRouter from 'vue-router'
import Bar from './components/bar.vue'
import Foo from './components/foo.vue'

Vue.use(VueRouter)
Vue.use(ElementUI)

const routes = [
  { path: '/foo', component: Foo },
  { path: '/bar', component: Bar }
]

const router = new VueRouter({
  routes: routes
})

const app =new Vue({
  router: router,
  render: h => h(Frame)
}).$mount('#app')
